package com.warmheart.builder.sys;

import com.warmheart.core.rs.base.BaseRsBuilder;
import com.warmheart.core.rs.oper.Rs;
import com.warmheart.entity.sys.SysAreaBase;

/**
 * 
 * @ClassName: SysAreaBase
 * @Description: 区域实体RsBuilder类，对应表名称为tb_sys_area_base
 *               温馨提示：不要修改该实体RsBuilder类的任何字段
 * @author ZhangJianyang
 * @date 2025-06-16 09:37:02
 *
 */
public class SysAreaBaseRsBuilder extends BaseRsBuilder<SysAreaBase, SysAreaBaseRsBuilder> {

    private final SysAreaBase t;

    @Override
    protected SysAreaBaseRsBuilder self() {
        return this;
    }

    @Override
    public SysAreaBase core() {
        return this.t;
    }

    public SysAreaBaseRsBuilder(SysAreaBase sysAreaBase) {
        t = sysAreaBase;
    }

    /**
     * 地区CODE
     */
    private Rs<SysAreaBase, SysAreaBaseRsBuilder> code;

    /**
     * 父地区CODE
     */
    private Rs<SysAreaBase, SysAreaBaseRsBuilder> parentCode;

    /**
     * 地区名称
     */
    private Rs<SysAreaBase, SysAreaBaseRsBuilder> areaName;

    /**
     * 地区简称
     */
    private Rs<SysAreaBase, SysAreaBaseRsBuilder> shortName;

    /**
     * 经度
     */
    private Rs<SysAreaBase, SysAreaBaseRsBuilder> lng;

    /**
     * 纬度
     */
    private Rs<SysAreaBase, SysAreaBaseRsBuilder> lat;

    /**
     * 行政级别
     */
    private Rs<SysAreaBase, SysAreaBaseRsBuilder> level;

    /**
     * 位置
     */
    private Rs<SysAreaBase, SysAreaBaseRsBuilder> position;

    /**
     * 区域链
     */
    private Rs<SysAreaBase, SysAreaBaseRsBuilder> areaLink;

    /**
     * 排序
     */
    private Rs<SysAreaBase, SysAreaBaseRsBuilder> sort;

    public Rs<SysAreaBase, SysAreaBaseRsBuilder> code() {
        if (this.code == null) {
            this.code = new Rs<SysAreaBase, SysAreaBaseRsBuilder>(self(), "code", "code");
        }
        return this.code;
    }

    public Rs<SysAreaBase, SysAreaBaseRsBuilder> parentCode() {
        if (this.parentCode == null) {
            this.parentCode = new Rs<SysAreaBase, SysAreaBaseRsBuilder>(self(), "parent_code", "parentCode");
        }
        return this.parentCode;
    }

    public Rs<SysAreaBase, SysAreaBaseRsBuilder> areaName() {
        if (this.areaName == null) {
            this.areaName = new Rs<SysAreaBase, SysAreaBaseRsBuilder>(self(), "area_name", "areaName");
        }
        return this.areaName;
    }

    public Rs<SysAreaBase, SysAreaBaseRsBuilder> shortName() {
        if (this.shortName == null) {
            this.shortName = new Rs<SysAreaBase, SysAreaBaseRsBuilder>(self(), "short_name", "shortName");
        }
        return this.shortName;
    }

    public Rs<SysAreaBase, SysAreaBaseRsBuilder> lng() {
        if (this.lng == null) {
            this.lng = new Rs<SysAreaBase, SysAreaBaseRsBuilder>(self(), "lng", "lng");
        }
        return this.lng;
    }

    public Rs<SysAreaBase, SysAreaBaseRsBuilder> lat() {
        if (this.lat == null) {
            this.lat = new Rs<SysAreaBase, SysAreaBaseRsBuilder>(self(), "lat", "lat");
        }
        return this.lat;
    }

    public Rs<SysAreaBase, SysAreaBaseRsBuilder> level() {
        if (this.level == null) {
            this.level = new Rs<SysAreaBase, SysAreaBaseRsBuilder>(self(), "level", "level");
        }
        return this.level;
    }

    public Rs<SysAreaBase, SysAreaBaseRsBuilder> position() {
        if (this.position == null) {
            this.position = new Rs<SysAreaBase, SysAreaBaseRsBuilder>(self(), "position", "position");
        }
        return this.position;
    }

    public Rs<SysAreaBase, SysAreaBaseRsBuilder> areaLink() {
        if (this.areaLink == null) {
            this.areaLink = new Rs<SysAreaBase, SysAreaBaseRsBuilder>(self(), "area_link", "areaLink");
        }
        return this.areaLink;
    }

    public Rs<SysAreaBase, SysAreaBaseRsBuilder> sort() {
        if (this.sort == null) {
            this.sort = new Rs<SysAreaBase, SysAreaBaseRsBuilder>(self(), "sort", "sort");
        }
        return this.sort;
    }
}